#include <stdio.h>
//#include "gtk/gtk.h"
#include <glade/glade.h>

GladeXML *xml;
GtkWidget *display;
GtkWidget *textValue;

gchar *d_string;

G_MODULE_EXPORT void on_displayButton_clicked(GtkButton *button,gpointer *data)
{

    /* Pull the widgets out of the tree */
    display = glade_xml_get_widget(xml, "displayLabel");

    textValue = glade_xml_get_widget(xml, "textEntry");

    /* Get the string value form the Entry widgets */
    d_string = gtk_entry_get_text(GTK_ENTRY(textValue));

    gtk_label_set_text(GTK_LABEL(display),d_string);
}

G_MODULE_EXPORT void on_exitButton_clicked(GtkButton *button,gpointer *data)
{
    gtk_main_quit();
}
